package com.example;

import org.apache.rocketmq.spring.autoconfigure.RocketMQAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;


@ServletComponentScan//开启了SpringBoot对service组件的支持
@Import(RocketMQAutoConfiguration.class)
@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class,      // 禁止 Spring Boot 自动配置数据源
        DataSourceTransactionManagerAutoConfiguration.class
})
@EnableFeignClients(basePackages = "com.example.feign")
@MapperScan("com.example.mapper")
public class UserServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserServiceApplication.class, args);
    }

}
